package com.poseidon.cgliblearn;

import java.lang.reflect.Method;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

public class DaoProxy implements MethodInterceptor {

	public Object intercept(Object paramObject, Method paramMethod, Object[] paramArrayOfObject,
			MethodProxy paramMethodProxy) throws Throwable {
		System.out.println("Before Method Invoke");
		paramMethodProxy.invoke(paramObject, paramArrayOfObject);
//		paramMethodProxy.invokeSuper(paramObject, paramArrayOfObject);
		System.out.println("After Method Invoke");
		return paramObject;
	}
}
